<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>Insert title here</title>
    <script type="text/javascript" src="js/jquery-1.8.2.min.js"></script>
    <script type="text/javascript" src="My97DatePicker/WdatePicker.js"></script>
    <script type="text/javascript">
        function changeDor(){
            location="toChange.do";
        }

    </script>
</head>
<body>
当前用户:${user.uname}
    <table>
        <tr>
            <td>
                选择
            </td>
            <td>宿舍id</td>
            <td>宿舍名称</td>
            <td>住宿楼名</td>
            <td>宿舍人数</td>
            <td>当前住宿人名</td>
            <td>图片</td>
            <td>
                <input type="button" value="宿舍调整" onclick="changeDor()">
            </td>
        </tr>
        <c:forEach items="${list}" var="m">
            <tr>
                <td>${m.did}</td>
                <td>${m.dname}</td>
                <td>${m.fname}</td>
                <td>${m.unum}</td>
                <td>${m.unames}</td>
                <td>
                    <img alt="无法展示">
                </td>
            </tr>
        </c:forEach>
    </table>
</body>
</html>